package com.wenmingliang.demo2.com.wenmingliang.demo2;

import java.util.HashMap;
import java.util.TreeMap;

public class HashOrTreeTest {

    public static void main(String[] args) {
        TreeMap treeMap = new TreeMap();

        for(int i = 0; i < 25; i++) {
            treeMap.put(i, i+10);

        }
        System.out.println(treeMap.descendingKeySet().toString());
        System.out.println(treeMap.values().toString());

        HashMap hashMap = new HashMap();
        for (int i = 0; i < 25; i++) {
            hashMap.put(i, "");

        }

        System.out.println(hashMap.values().toString());
    }
}
